﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Pop-PubPage.aspx.cs" Inherits="ZX.WebApp.Crm.Report.Pop_PubPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../../Styles/extendTable.css" rel="stylesheet" type="text/css" />
    <link href="../../Styles/default/calendar.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery-1.6.min.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.json-2.2.js" type="text/javascript"></script>
    <script src="../../Scripts/Jquery.form.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.calendar.js" type="text/javascript"></script>
    <script src="../../Scripts/DatePicker/WdatePicker.js" type="text/javascript"></script>
   <%-- <script src="../../scripts/DatePicker/WdatePicker.js" type="text/javascript"></script>--%>
    <script type="text/javascript">
        var setStartTime = function () {
            WdatePicker({ doubleCalendar: true, dateFmt: 'yyyy-MM-dd',
                onpicked: function (dp) {
                   dp.cal.getDateStr();
                }
            })
        };
        var setEndTime = function () {
            WdatePicker({ doubleCalendar: true, dateFmt: 'yyyy-MM-dd', onpicked:
                function (dp) {
                     dp.cal.getDateStr();
                }
            })
        };
        var check = function (obj) {
            $("#hdnFd").val(obj);
            return true;
        }
        var moreInfo = function (url, title) {
            var stime = $("#txtStime").val();
            var etime = $("#txtEtime").val();
            window.parent.parent.$("#tabs").tabs('close', title);
            var pagetitle = title;
            parent.parent.addTabs(pagetitle, url + "?startDate=" + stime + "&id=f20f53a6-080b-4472-90a6-69e22d27317c&type=3&endDate=" + etime);
            parent.parent.NeedRefreshPage = this;
        }
    </script>
    <style type="text/css">
        a
        {
            text-decoration: none;
            color: Red;
        }
        a:hover
        {
            text-decoration: underline;
        }
        .link
        {
            color: #458fce;
            font-size: small;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div id="content">
    <input type="hidden" id="hdnGoal" runat="server" />
        <table class="tableContent">
            <tr>
                <th width="10%" align="right">
                    日期
                </th>
                <td>
                    <input type="text" runat="server" class="inputText Wdate" id="txtStime"
                        readonly="readOnly" style="width: 80px;" onfocus="setStartTime();"/>至<input type="text" runat="server" class="inputText Wdate" id="txtEtime" readonly="readOnly"
                        style="width: 80px;" onfocus="setEndTime()" />
                    <asp:Button ID="btnSearch" runat="server" Text="查询" OnClick="btnDone_Click" CssClass="btnCheck"
                        OnClientClick="return check('')" />
                    总额：<font color='red'><b><asp:Label ID="lblTotalMoney" runat="server" Text="0"></asp:Label></b></font>
                   
                </td>
            </tr>
            <tr>
                <th width="10%" align="right">
                </th>
                <td>
                    <b>&nbsp;<asp:LinkButton ID="lnkMonth" runat="server" OnClick="btnDone_Click"
                        OnClientClick="return check('month');" CssClass="link">本月</asp:LinkButton>
                        &nbsp;<asp:LinkButton ID="lnkSeason" runat="server" OnClick="btnDone_Click"
                            OnClientClick="return check('season');" CssClass="link">本季度</asp:LinkButton>
                        &nbsp;<asp:LinkButton ID="lnkYear" runat="server" OnClick="btnDone_Click"
                            OnClientClick="return check('year');" CssClass="link">本年</asp:LinkButton> 
                             &nbsp;<asp:LinkButton ID="lnkLastMonth" runat="server" OnClick="btnDone_Click"
                            OnClientClick="return check('lastmonth');" CssClass="link">上月</asp:LinkButton>
                             &nbsp;<asp:LinkButton ID="lnkLastSeason" runat="server" OnClick="btnDone_Click"
                            OnClientClick="return check('lastseason');" CssClass="link">上季度</asp:LinkButton>
                             &nbsp;<asp:LinkButton ID="lnkLastYear" runat="server" OnClick="btnDone_Click"
                            OnClientClick="return check('lastyear');" CssClass="link">上年</asp:LinkButton></b>
                   <asp:HiddenField ID="hdnFd" runat="server" />
                </td>
            </tr>
            <tr style="display:none">
                <th width="10%" align="right">
                </th>
                <td align="left">
                  <b>&nbsp;<asp:LinkButton ID="lnkTeam" runat="server" OnClick="btnDone_Click"
                        OnClientClick="return check('team');" CssClass="link">团队排名</asp:LinkButton>
                        &nbsp;&nbsp;<asp:LinkButton ID="lnkPerson" runat="server" OnClick="btnDone_Click"
                            OnClientClick="return check('person');" CssClass="link">个人排名</asp:LinkButton>
                        &nbsp;&nbsp;<asp:LinkButton ID="lnkCaption" runat="server" OnClick="btnDone_Click"
                            OnClientClick="return check('caption');" CssClass="link">分总排名</asp:LinkButton></b>
                  </td>
            </tr><tr><td colspan="2"> 说明： <font color="#458fce">回款排名.分公司：<font color="red">回款</font> | 目标金额 | <font color="red">达成率%</font></font>&nbsp;&nbsp;单位：<font color="red">万</font></td></tr>
        </table>
    </div>
    </form>
</body>
</html>
